package model

type ArticleCategoryRel struct {
	ID         uint64 `gorm:"primaryKey;autoIncrement;comment:'id'" json:"id"`
	ArticleID  uint64 `gorm:"type:bigint unsigned;not null;comment:'文章id';unique;index:idx_category_id" json:"article_id"`
	CategoryID uint64 `gorm:"type:bigint unsigned;not null;comment:'分类id'" json:"category_id"`
}

func (ArticleCategoryRel) TableName() string {
	return "t_article_category_rel"
}
